package com.woniu.cms.lease.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author romantic sheep
 * @since 2022-09-18
 */
@Getter
@Setter
  @TableName("cms_lease_manage")
@ApiModel(value = "LeaseManage对象", description = "")
public class LeaseManage implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("仪表管理主键")
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("租赁单位 项目信息引用过来")
      private String rentalUnits;

      @ApiModelProperty("项目经理 项目信息引用过来")
      private String projectManager;

      @ApiModelProperty("工程名称 项目信息引用过来")
      private String projectName;

      @ApiModelProperty("工程合同号 项目信息引用过来")
      private String contractNumber;

      @ApiModelProperty("仪表名称")
      private String instrumentName;

      @ApiModelProperty("规格型号")
      private String model;

      @ApiModelProperty("附件")
      private String annex;

      @ApiModelProperty("管理编号")
      private String managementId;

      @ApiModelProperty("租出日期")
      private Date dateOfRental;

      @ApiModelProperty("归还日期")
      private Date returnTime;

      @ApiModelProperty("使用时间")
      private Integer ofUse;

      @ApiModelProperty("租赁价格")
      private Integer valueOfLeass;

      @ApiModelProperty("租金合计")
      private Integer totalRent;

      @ApiModelProperty("租前检查")
      private String beforeChecking;

      @ApiModelProperty("归还检查")
      private String returnInspection;

      @ApiModelProperty("备注")
      private String remark;

      @ApiModelProperty("记录人")
      private String recorder;

      @ApiModelProperty("记录日期")
      private Date recordingTime;

      @ApiModelProperty("仪器详情表外键")
      private Integer storageId;

      @ApiModelProperty("归还状态")
      private Integer state;

      //它用在属性上，表示该属性不为数据库表字段，但又是必须使用的。若exist = true，则表示该属性为数据库表字段。
//      @TableField(exist = false)
//      private LeaseStorage leaseStorage;




}
